package com.biz.primus.ms.commodity.trans;

import com.biz.primus.commodity.vo.backend.ProductBriefVo;
import com.biz.primus.ms.commodity.dao.po.Product;
import com.google.common.base.Function;
import javax.annotation.Nullable;


/**
 * @author 江南
 * @usage
 * @reviewer
 * @since 2017/2/7
 */
public class Product2ProductBriefVo implements Function<Product,ProductBriefVo> {

    @Nullable
    @Override
    public ProductBriefVo apply(@Nullable Product input) {
//        return new ProductBriefVo(String.valueOf(input.getId()),input.getProductCode(),input.getName(),input.getCategory().getName(),input.getLogo(),String.valueOf(input.getCategory().getId()));
        return null;
    }

}
